#include <stdio.h>
int main()
{
int t,s=0,n;
scanf("%d",&n);
t=n;
while(t)
s=s*10+t%10,t/=10;
if(s==n)printf("Yes\n");
else printf("No\n");
}
